cmake_minimum_required(VERSION 3.5.1)
project(m2f_labeling)

set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++11")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

find_package(PCL 1.8 REQUIRED)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
include_directories(${PCL_INCLUDE_DIRS})

include_directories(
    include
    include/toolkits
    include/toolkits/cloud_viewer
)

# 导入自己的库, 务必要放在add_executable/library前面
link_directories(${PROJECT_SOURCE_DIR}/include/toolkits/cloud_viewer)

add_executable(m2f_labeling src/M2FLabeling.cpp)
target_link_libraries(m2f_labeling libShowUtils.so -lpcap ${PCL_LIBRARIES})